package com.lky.marshallmall.marshall.auth.feign;

import com.lky.common.utils.R;
import com.lky.common.vo.MemberVo;
import com.lky.marshallmall.marshall.auth.vo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/4/26 16:52
 */
@FeignClient("marshall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo vo);
    @PostMapping("/member/member/login")
    public R<MemberVo> login(@RequestBody UserLoginVo vo);
    @PostMapping("/member/member/oauth/login")
    public R<MemberVo> oauthLogin(@RequestBody TokenVo vo);
    @PostMapping("/member/member/oauth/weiboLogin")
    public R<MemberVo>  oauthLogin(WeiboTokenVo weiboTokenVo);
}
